<template>
  <span>{{idx}}}</span>
</template>

<script>
  export default {
    name:'ColumnIndex',
    props:{
      scope:Object,
      column:{
        type:Object
      },
      options:{
        type:Object
      }
    },
    computed:{
      idx(){
        let sc = this.scope;
        let options = this.options;
        let start = (options.pageNum - 1)*options.pageSize;
        return start + sc.$index + 1;
      }
    }
  }
</script>
